coding interview tasks javascript